<?php

// Namespace

namespace Loop;


/**
 * CHistory is an abstract class which every job manager's history models should extend 
 */

abstract class CHistory extends \Loop\CObject
{	
	/**
	 * Creates CHistory properties
	 */
	
	protected function createProperties()
	{
		$this->createProperty
		(
			'status',
			array
			(
				'type' => TYPE_STRING_MEDIUM
			)
		);
		
		$this->createProperty
		(
			'trace',
			array 
			(
				'type' => TYPE_TEXT
			)
		);
	}


	/**
	 * Models extending CHistory has to override this function
	 */

	abstract protected function setStatus($status);
}

?>
